package m1.server.database;

import m2.component.Component;
import m2.component.iface.ComponentInterface;

public class Database extends Component {
	
	private Query query;
	private SecurityManagement securityManagement;

	public Database(String name) {
		super(name);
		query = new Query("Query");
		securityManagement = new SecurityManagement("SecurityManagement");
		addInterfaceFourni(new ComponentInterface("InterfaceQuery"), query);
		addInterfaceFourni(new ComponentInterface("InterfaceSecurityManagement"), securityManagement);
	}

	public Query getQuery() {
		return query;
	}

	public SecurityManagement getSecurityManagement() {
		return securityManagement;
	}
	
}
